from flask import Blueprint, render_template
from admin.core.auth import logon_check


mod = Blueprint("core_index", __name__, url_prefix="/core", template_folder="templates", static_folder="static")

@mod.route("/department_management")
@logon_check
def department_management():
    return render_template("home/departmentManagement.html")

@mod.route("/dictionary_management")
@logon_check
def dictionary_management():
    return render_template("home/dictionaryManagement.html")

@mod.route("/employees_management")
@logon_check
def employees_management():
    return render_template("home/employeesManagement.html")

@mod.route("/partition_management")
@logon_check
def partition_management():
    return render_template("home/partitionManagement.html")

@mod.route("/company_management")
@logon_check
def company_management():
    return render_template("home/companyManagement.html")

@mod.route("/facility_management")
@logon_check
def facility_management():
    return render_template("home/facilityManagement.html")

@mod.route("/role_management")
@logon_check
def role_management():
    return render_template("home/roleManagement.html")

@mod.route("/person_management")
@logon_check
def person_management():
    return render_template("home/Personal.html")

@mod.route("/secondSupply/equipment")
@logon_check
def equipment():
    return render_template("secondSupply/equipment.html")

@mod.route("/secondSupply/personal")
@logon_check
def personal():
    return render_template("secondSupply/personalMap.html")

@mod.route("/secondSupply/equipmentDetail")
@logon_check
def euipmentDetail():
    return render_template("secondSupply/equipmentDetail.html")

@mod.route("/secondSupply/equipmentDetailOne")
@logon_check
def equipmentDetailOne():
    return render_template("secondSupply/equipmentDetailOne.html")

@mod.route("/secondSupply/equipmentDetailTwo")
@logon_check
def equipmentDetailTwo():
    return render_template("secondSupply/equipmentDetailTwo.html")

@mod.route("/secondSupply/video")
@logon_check
def video():
    return render_template("secondSupply/video.html")
